<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="../member/js/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <script type="text/javascript" src="../member/js/vue.min.js" ></script>

    <script>
        var obj=(window.location.href).split("=");
        var id=obj[1].split("&")[0];
        var tableName=obj[2];
        // alert(id+":"+tableName)
        // alert(w_id);
        $.post(
            "../geological/geologicalList",
            "ID="+id+"&tableName="+tableName,
            function (geologicals) {
                new Vue({
                    el:"#geUpdate",
                    data:{
                        geological:geologicals
                    },
                    methods:{
                        updateGe:function () {

                            $.post(
                                "../geological/updateGe",

                                function (result) {

                                }
                            );
                        }
                    }
                })
            }
        );
    </script>
</head>

<body>
<div id="geUpdate">
  <div class="x-body">
        <div class="layui-form-item">
            <label for="L_email" class="layui-form-label">
                姓名:
            </label>
            <div class="layui-input-inline">
                <span type="text" id="L_email" name="email" required="" lay-verify="email"
                      autocomplete="off" class="layui-input">{{geological[0].w_name}}</span>
            </div>
        </div>
        <div class="layui-form-item">
          <label for="w_num" class="layui-form-label">
              工号:
          </label>
          <div class="layui-input-inline">
                <span type="text" id="w_num" name="email" required="" lay-verify="email"
                      autocomplete="off" class="layui-input">{{geological[0].w_num}}</span>
          </div>
        </div>
        <div class="layui-form-item">
          <label for="w_sex" class="layui-form-label">
              性别:
          </label>
          <div class="layui-input-inline">
                <span type="text" id="w_sex" name="email" required="" lay-verify="email"
                      autocomplete="off" class="layui-input">{{geological[0].w_sex}}</span>
          </div>
        </div>
      <div class="layui-form-item">
          <label for="w_idcard" class="layui-form-label">
              身份证号:
          </label>
          <div class="layui-input-inline">
              <input type="text" id="w_idcard" required="" lay-verify="repass"
                     autocomplete="off" class="layui-input" :value="workerSelf[0].w_idcard">
          </div>
      </div>
        <div class="layui-form-item">
            <label for="w_phone" class="layui-form-label">
                <span class="x-red">*</span>手机号：
            </label>
            <div class="layui-input-inline">
                <input type="text" id="w_phone" required="" lay-verify="repass"
                autocomplete="off" class="layui-input" :value="workerSelf[0].w_phone">
            </div>
        </div>
      <div class="layui-form-item">
          <label for="w_email" class="layui-form-label">
              <span class="x-red">*</span>邮箱：
          </label>
          <div class="layui-input-inline">
              <input type="text" id="w_email" required="" lay-verify="repass"
                     autocomplete="off" class="layui-input" :value="workerSelf[0].w_email">
          </div>
      </div>
      <div class="layui-form-item">
          <label for="w_strongpoint" class="layui-form-label">
              <span class="x-red">*</span>擅长领域：
          </label>
          <div class="layui-input-inline">
              <input type="text" id="w_strongpoint" required="" lay-verify="repass"
                     autocomplete="off" class="layui-input" :value="workerSelf[0].w_strongpoint">
          </div>
      </div>
        <div class="layui-form-item">
            <label for="w_num" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="add" lay-submit="" @click="updateW()">
                修改
            </button>
        </div>

  </div>
</div>
  <script>var _hmt = _hmt || []; (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();</script>
</body>

</html>